@extends('host.common.store.common')
@section('content')
    <div class="homepage-m-r">
        <div class="m-r-title">
            <div class="f16 ml10 lh40 wb60 fl" style="color: #894923">所有商品</div>
           {{-- <div class="fr c-coffee lh40 mr15">
                <a href="javascript:void(0)" style="color: #894923">更多></a>
            </div>--}}
        </div>
        <div class="m-r-box clearfix" id="info-list-box">

        </div>
        <div id="comm-paging" class="comm-paging mb10" style="float:right;"></div>
    </div>
    <script type="text/template" id="info-template">
        <% _.each(obj, function(item){%>
        <div class="common-box4 m-r-b">
            <div class="box4-img">
                <a href="<%=item.href %>">
                    <img src="<%=item.imgsrc%>"></a>
            </div>
            <div class="box4-text">
                <a href="<%=item.href %>" title="<%=item.name%>"><%=item.name%></a>
            </div>
            <div class="box4-text-left"><%=item.price%></div>
            <div class="box4-text-right"><%=item.minnum%>起订</div>
        </div>
        <% });%>
    </script>

    <script type="text/template" id="baseinfo-templ">

        <div class="homepage-l-main f16">
            <%=name %></div>
        <div class="homepage-l-logo">
            <img src="<%=logo %>"></div>
        <div class="homepage-l-collection" style="display: none">
            <!-- TODO, 收藏该店铺 -->
            <a href="javascript:void(0)">收藏该店铺</a>
        </div>
        <div class="homepage-l-list">
            <div class="clearfix">
                <div class="l-list-l">店&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;主：</div>
                <div class="l-list-r">
                    <%=storekeeper %></div>
            </div>
            <div class="clearfix">
                <div class="l-list-l">信&nbsp;&nbsp;用&nbsp;&nbsp;度：</div>
                <div class="l-list-r">
                    <%=creditLimit %></div>
            </div>
            <div class="clearfix">
                <div class="l-list-l">店铺等级：</div>
                <div class="l-list-r">
                    <%=storeGrade %></div>
            </div>
            <div class="clearfix">
                <div class="l-list-l">商品数量：</div>
                <div class="l-list-r">
                    <%=goodAmount %></div>
            </div>
            <div class="clearfix">
                <div class="l-list-l">所在地区：</div>
                <div class="l-list-r">
                    <%=region %></div>
            </div>
            <div class="clearfix">
                <div class="l-list-l">创店时间：</div>
                <div class="l-list-r">
                    <%=createTime %></div>
            </div>
            <div class="clearfix">
                <div class="l-list-l">认&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;证：</div>
                <div class="l-list-r">
                    <%=certification %></div>
            </div>
            <div class="clearfix">
                <div class="l-list-l">详细地址：</div>
                <div class="l-list-r">
                    <%=addr %></div>
            </div>
            <div class="clearfix">
                <div class="l-list-l">联系电话：</div>
                <div class="l-list-r">
                    <%=contactPhone %></div>
            </div>
            <div class="clearfix mb10">
                <div class="l-list-l">授权状态：</div>
                <div class="l-list-r" id="login_box" style="height:33px;">
                    <% if(!!authorityState) { %>
                    <%=authorityState%>
                    <% } else { %>
                    请登录后查看
                    <a class="btn btn-default btn-w60x32" id="login_btn" style="margin-left: 10px;"
                       href="">登录</a>
                    <% } %></div>
            </div>
        </div>

    </script>

    <script type="text/template" id="classify-templ">
        <% _.each(obj, function(item){ %>
        <div>
            <ul class="tabl-tree">
                <li class="clearfix">
                    <a class="show-hidden clearfix" href="javascript:void(0);">
                        <span class="bg-plus icon"></span>
                        <span><%=item.name%></span>
                    </a>
                </li>
            </ul>

            <ul class="tabl-c" style="display: none; margin-top:0px;margin-left:30px;">
                <% _.each(item.children, function(childItem){ %>
                <li>
                    <a class="c-666 f14 h32 lh32" href="<%=childItem.hrefVal%>">
                        <%=childItem.name%></a>
                </li>
                <% }); %></ul>

        </div>
        <% }); %></script>

    <script src="/assets/b2b/js/pageModules/common/C13.js"></script>
@stop